package cn.tedu.huntingmall.pojo.dto.user;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
public class UserUpdatePasswordDTO implements Serializable {

    /**
     * 验证请求参数失败的描述文本前缀
     */
    private static final String VALIDATE_MESSAGE_PREFIX = "修改密码失败，";

    @ApiModelProperty(value = "用户名", required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "用户名不能为空!")
    private String username;

    @ApiModelProperty(value = "原密码", required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "原密码不能为空!")
    private String password;

    @ApiModelProperty(value = "新密码", required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "新密码不能为空!")
    private String passwordNew;

}
